﻿-- =============================================
-- Author:		JPGoncalves
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[A_UPD_Aposta]
	-- Add the parameters for the stored procedure here
	@IDAposta AS  INT,
	@IDUtilizador AS INT,
	@IDJogo AS INT,	
	@Aposta1 AS INT,
	@Aposta2 AS INT
	
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	UPDATE [Apostas].[dbo].[A_Apostas]
	SET [IDUtilizador] = @IDUtilizador
      ,[IDJogo] = @IDJogo
      ,[Aposta1] = @Aposta1
      ,[Aposta2] = @Aposta2
	WHERE IDAposta = @IDAposta

END